package jtk.project4.fleet.field;

import java.awt.Checkbox;

import jtk.project4.fleet.domain.TireInv;

import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Resize;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.ComboField;
import nl.coderight.jazz.form.field.TextField;
import nl.coderight.jazz.form.field.button.CheckButton;

public class UnderWarrantyAddEditTireToInventoryField extends GroupControl<TireInv>{
	private CheckButton underWarrantyField;
	private TextField DayField;
	private TextField MeterField;
	
	public UnderWarrantyAddEditTireToInventoryField(String bindID){
		underWarrantyField = new CheckButton("");
		setTitle("header.UnderWarranty");
		setBindID(bindID);
		createFields();
		createLayout();
	}
	
	private void createFields(){
		//underWarrantyField = new CheckButton("");
		
		DayField = new TextField ("Day (s)", 30);
		//DayField.setRequired(true);
		DayField.setEnabled(false);
		
		MeterField = new TextField ("meter", 30);
		//MeterField.setRequired(true);
		MeterField.setEnabled(false);
		
	}
	
	private void createLayout(){
		setLayout(new FormLayout())
		.addLabel("label.Under Warranty").addField(underWarrantyField)
		.addRow()
		.addLabel("label.Day (s)").addField(DayField, Resize.HORIZONTAL)
		.addLabel("label.Meter").addField(MeterField, Resize.HORIZONTAL);
	}
}
